<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>


    <style>

        body{
            height: 1000px;
        }



        div{
            height: 100px;
            width: 100px;
            background-color: pink;
            margin: 100px;
        }
    </style>
</head>
<body>

    <div>

    </div>


    <script>
        // window.addEventListener('scroll',function(){
        //     console.log(parseInt(document.documentElement.scrollTop))
        // })


        const t=new Date();
        console.log(t.toLocaleDateString())
        console.log(t.toDateString())
        console.log(t.toLocaleTimeString())
        console.log(t.getHours())
        console.log(t.getFullYear())
        console.log(t.getDay())
        console.log(t.getMonth())




       


    </script>




    
</body>
</html>